package chpt_04_lesson_01.log;

import org.springframework.stereotype.Component;

/**
 * @author Ping
 * @date 2023/3/15 11:01
 **/
@Component("dBLogFactory")
public class DBLogFactory implements AbstractLogFactory {
    private static DBLog log = new DBLog() ;

    public DBLogFactory() {
        System.out.println("hello from factory.") ;
    }

    @Override
    public Log getLog() {
        return log;
    }
}
